package com.example.demo.enums;

/**
 * Created by hongzhenyue on 17/8/15.
 */
public enum ResultEnum {
    UNKOWN_ERROR(-1,"system error"),
    SUCCESS(0,"success"),
    ERROR(1,"error")
    ;
    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
